package com.stylefeng.guns.modular.area.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liqi
 * @since 2017-11-09
 */
@TableName("BDAP_SUB_AREA")
public class BdapSubArea extends Model<BdapSubArea> {

	private static final long serialVersionUID = 1L;
	/**
	 * LACCI
	 */
	@TableField("LAC_CI")
	private String lacCi;
	/**
	 * 严重值
	 */
	@TableField("SEVERE_VALUE")
	private Integer severeValue;
	/**
	 * 饱和值
	 */
	@TableField("SATURATION_VALUE")
	private Integer saturationValue;
	/**
	 * 警戒值
	 */
	@TableField("WARNING_VALUE")
	private Integer warningValue;
	/**
	 * 经纬度
	 */
	@TableField("LON_LAT")
	private String lonLat;
	/**
	 * 子区域名称
	 */
	@TableField("NAME")
	private String name;

	/**
	 * 用户id
	 */
	@TableField("USERID")
	private Integer userid;
	/**
	 * 区域id
	 */
	@TableField("PID")
	private Long pid;
	/**
	 * 主键id
	 */
	@TableId(type = IdType.AUTO)
	@TableField("ID")
	private Long id;

	@TableField(exist = false)
	private String pName;

	public Integer getSevereValue() {
		return severeValue;
	}

	public void setSevereValue(Integer severeValue) {
		this.severeValue = severeValue;
	}

	public Integer getSaturationValue() {
		return saturationValue;
	}

	public void setSaturationValue(Integer saturationValue) {
		this.saturationValue = saturationValue;
	}

	public Integer getWarningValue() {
		return warningValue;
	}

	public void setWarningValue(Integer warningValue) {
		this.warningValue = warningValue;
	}

	public String getLonLat() {
		return lonLat;
	}

	public void setLonLat(String lonLat) {
		this.lonLat = lonLat;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getpName() {
		return pName;
	}

	public void setpName(String pName) {
		this.pName = pName;
	}

	public String getLacCi() {
		return lacCi;
	}

	public void setLacCi(String lacCi) {
		this.lacCi = lacCi;
	}

	@Override
	public String toString() {
		return "BdapSubArea{" + "severeValue=" + severeValue + ", saturationValue=" + saturationValue
				+ ", warningValue=" + warningValue + ", lonLat=" + lonLat + ", name=" + name + ", userid=" + userid
				+ ", pid=" + pid + ", id=" + id + "}";
	}

}
